import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';

import '../../viewmodel/bed/current_bed_info_view_model.dart';

class CurrentBedInfoFragment extends BaseStatefulMvvmWidget{
  final String bedId;

  CurrentBedInfoFragment(this.bedId);

  @override
  State<StatefulWidget> createState() => _CurrentBedInfoState();

}

class _CurrentBedInfoState extends BaseMvvmRefreshState<CurrentBedInfoViewModel,CurrentBedInfoFragment>{
  @override
  Widget buildRootView(BuildContext context, Widget loadingContentWidget) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: loadingContentWidget,
    );
  }

  @override
  Widget createScrollWidget() {
    return viewModel.contentWidget();
  }

  @override
  CurrentBedInfoViewModel createViewModel() {
    return CurrentBedInfoViewModel(context,widget.bedId);
  }

}